// Decompiled by DJ v3.5.5.77 Copyright 2003 Atanas Neshkov  Date: 2009-3-27 22:23:38
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   Message.java

package domain;

import java.util.Date;
import org.apache.struts.action.ActionForm;

public class Message extends ActionForm
{

    private static final long serialVersionUID = 1L;
    private int id;
    private String title;
    private String writor;
    private String content;
    private Date createTime;
    public Message()
    {
        createTime = new Date();
    }

    public Message(String title, String content)
    {
        createTime = new Date();
        this.title = title;
        this.content = content;
    }

    public Message(String title, String content, String writor)
    {
        createTime = new Date();
        this.title = title;
        this.content = content;
        this.writor = writor;
    }

    public Message(String content, Date createTime, int id, String title, String writor) {
		super();
		this.content = content;
		this.createTime = createTime;
		this.id = id;
		this.title = title;
		this.writor = writor;
	}

	public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public String getTitle()
    {
        return title;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getWritor()
    {
        return writor;
    }

    public void setWritor(String writor)
    {
        this.writor = writor;
    }

    public String getContent()
    {
        return content;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public Date getCreateTime()
    {
        return createTime;
    }

    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

}